package com.example.demo.entity;


import java.io.Serializable;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户与角色类
 * @author Henry.Y
 * 2019年5月13日
 */
@Data
@NoArgsConstructor
public class UserAndRole implements Serializable{
	
	private static final long serialVersionUID= -3725325284720757688L;

	private String userId;  
	
	private String roleId;
	
	private User user;
	
	private Role role;
	
	public UserAndRole(String userId,String roleId){
		this.userId= userId;
		this.roleId= roleId;
		
	}
}
